package main


type QueueList interface {}

type Queue struct {
	List *QueueList
}

// 入栈
func (queue *Queue) Init() {
	queue.List = new(QueueList)
	queue.List.Init()
}

// 入栈
func (stack *Stack) pushSy(item string) {
	stack.Sy = append(stack.Sy, item)
}

// 出栈
func (stack *Stack) popSx() string {
	item := stack.Sx[len(stack.Sx) - 1]
	stack.Sx = stack.Sx[0: len(stack.Sx) - 1]
	return item
}

// 出栈
func (stack *Stack) popSy() string {
	item := stack.Sy[len(stack.Sx) - 1]
	stack.Sy = stack.Sy[0: len(stack.Sx) - 1]
	return item
}